package com.yc.privilege.service;

import com.yc.privilege.entity.Function;
import com.yc.privilege.entity.FunctionTree;
import com.yc.privilege.entity.TempPage;
import com.yc.privilege.entity.User;

import java.util.List;



public interface Functionservice{
	/**
     * 根据rname去查找功能子节点
     * 根据uid去查找功能
     * @param rName
     * @param uid
     * @return
     */

    List<Function> findnextFunction(String rName,int uid);
    
    /**
     * 根据id更新function
     * @param function
     */
    int update(Function function);
       

    /**
     * 根据id删除function
     * @param id
     */
    int deleteById(int fid);

	FunctionTree functionTree(User user);

	FunctionTree updateFunctionTree(User user, int rid);

	TempPage<Function> findFunctionByPages(int parent_id,int page, int rows);
	/**
	 * 批量更新功能信息
	 * @param list
	 * @return
	 */
	int updateFunction(List<Function> list);
 
}
